package com.leha.core.constants;

/**
 * Created by xiabin on 2017/7/7.
 */
public enum CoreErrorDict {
    RESULT_ERROR(1, "数据不存在"),
    GAME_NOT_EXIST(2, "游戏不存在"),
    SYSTEM_ERROR(10001, "系统未知错误"),
    Save_Record_Failed(10002, "保存记录失败"),
    PWD_Incorrect(10003, "密码不正确"),
    Node_NOT_EXIST(10004, "组织架构不存在"),
    Node_User_Exist(10005, "节点中已包含该用户"),
    USER_EXIST(10006, "用户已存在"),
    Device_Not_Found(10007, "找不到推送设备"),
    ALLREADYINGroup(10008, "已经在群里了"),
    Relation_Not_Exist(10009, "好友不存在"),
    No_Review_Info(10010, "没用查到审核人信息"),
    APP_ID_EMPTY(10011, "应用ID不能为空"),
    Has_Child_Node(10012, "只能删除子节点"),
    DATA_NOT_EXIST(10013, "数据记录不存在"),
    NO_Privige(10014, "只有创建人才可以操作"),
    USER_DISABLED(10015, "用户被封禁"),
    EXIST_REVIEW(10016, "重复审批"),
    REVIEW_WRONG_STATE(10017, "无当前审批"),
    NO_Permission(10018, "无系统管理员权限"),
    DUPLICATE_USER_TAG(10019, "用户标签关系重复"),
    MEMBER_SATURATED(10020, "人数已到上限, 请联系客服升级"),
    NOT_SUPPORT_DATE(10021, "只能查询当前时间之前的出勤记录"),
    USER_ID_NOT_VALID(10022, "非法的用户ID"),
    WRONG_DATA(10023, "请求数据错误"),
    EXANGE_REC_EXIST(10024,"已经存在的领奖记录"),
    EXCHANGE_Extend(10025,"兑换频率限制");
    private String errMsg;

    private int errCode;

    CoreErrorDict(int code, String msg) {
        errCode = code;
        errMsg = msg;
    }

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
